<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="utf-8">
<title>编辑器</title>
<script charset="utf-8" type="text/javascript" src=<?php echo base_url()."include/kindeditor-4.1.7/kindeditor.js"?>></script>
<script charset="utf-8" type="text/javascript" src=<?php echo base_url()."include/kindeditor-4.1.7/lang/zh_CN.js"?>></script>


<style>
			form {
				margin: 0;
			}
			textarea {
				display: block;
			}
		</style>
		<script>
			
			var editor;
        KindEditor.ready(function(K) {
                editor = K.create('#<?php echo $id; ?>', {
                        resizeType : 2,
						allowFileManager : true,
                        uploadJson : '/include/kindeditor-4.1.7/php/upload_json.php',
                        fileManagerJson : '/include/kindeditor-4.1.7/php/file_manager_json.php'
                });
        });
		</script>
<style type="text/css">
code {
 font-family: Monaco, Verdana, Sans-serif;
 font-size: 12px;
 background-color: #f9f9f9;
 border: 1px solid #D0D0D0;
 color: #002166;
 display: block;
 margin: 14px 0 14px 0;
 padding: 12px 10px 12px 10px;
}

</style>
</head>
<body>

			<textarea id="<?php  echo $id;?>" name="<?php  echo $name;?>" style="width:700px;height:300px;visibility:hidden;<?php  echo $style;?>">
<?php  echo $value;?>
			</textarea>
	

</body>
</html>